home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_1 / faxdor13.zip / FAXDV.DOC < prev    next >
Text File  |  1991-04-10  |  4KB  |  132 lines

  1.                         ┌─────────────────────┐
  2.                         │  From: JON ANDERSON │
  3. ────────────────────────┤                     ├───────────────────────────
  4.                         │    Date: 04-10-91   │        Used by Permission.
  5.                         └─────────────────────┘
  6.  
  7. Now, the fax tsr thing:  Here's a well-documented bat file which uses
  8. bitfax v3.0's TSR form , WAIT.com, and Chuck Eglinton's REMCTL58.zip
  9. to do neat thing:
  10.  
  11. Batch file follows:
  12. @echo off
  13. goto start
  14.  
  15. REM ***************** Documentation *******************************
  16. REM
  17. REM ***Purpose: Allow use of FAX card, modem, &/or answering maching
  18. REM    on a single line, without any switching-device
  19. REM
  20. REM ***Requires: 1) Charles Eglinton's excellent shareware utility
  21. REM              called REMOTE CONTROL (latest is REMCTL58.ZIP)
  22. REM           2) Todd Miller's great DOS utility: WAIT.com
  23. REM              available as WAITBAT.ZIP
  24. REM           3) DesqView
  25. REM           4) FAX card with TSR-type software, eg: BitFAX v3.0
  26. REM     Also useful but not required:
  27. REM           5) David G. Thomas' TAME*.ZIP, a DesqView utility to
  28. REM              enhance performance
  29. REM
  30. REM ***Why:
  31. REM
  32. REM Why want 2 separate 1-ring calls to activate FAX? Because having
  33. REM a 1-call requirement obligates the FAX to wait the time defined
  34. REM in the WAIT.com switch line...anyone calling voice will get FAX!
  35. REM So, having a requirement of 2 means one can reset the sequence
  36. REM merely by calling again and ringing a few rings!
  37. REM Also, its unlikely that an unknowing outside party would hangup
  38. REM twice with 1-ring each time.
  39. REM
  40. REM ** How to setup:
  41. REM          Just read thru this bat file and make any directory/drive
  42. REM          changes to be consistent with your own system.  My own
  43. REM          approach, for clarity, is to include all drive/directory
  44. REM          changes to be written here, even ifnec for the logic
  45. REM          of the batch file... this makes things clear, and, as a
  46. REM          habit, lets one move steps around within a bat file with
  47. REM          less chance for the file 'losing its way' on execution.
  48. REM
  49. REM      Setup DV's window : ans. 'Y' to "Close on Exit? ".
  50. REM      DV's window must be setup for communications, i.e, it can NOT
  51. REM      be allowed to swap out!
  52. REM
  53. REM * By Jon Anderson, Boston Gas BBS
  54. REM   617-235-6303  * USR DS * 24hrs/day * Anes/Med/Science/Engineering
  55. REM
  56. REM  **************************************************************
  57. REM
  58. REM   You're free, of course, to edit-out all REM'd lines, which are
  59. REM   ignored by DOS.
  60. REM
  61. REM ****************** end of documentation ***********************
  62.  
  63. :start
  64. c:\dv\dvansi
  65. e:
  66. c:\tame\tame-res
  67.  
  68. :TOP
  69. REM remove any fax tsr from any earlier event:
  70. cd\bitfax
  71. RMV_RECV
  72.  
  73. REM this makes an errorlevel dep. on how many rings before hangup:
  74. :cycle
  75. cd\remctl58
  76. RC 3 ATS0=0
  77. IF ERRORLEVEL 3 GOTO 3
  78. IF ERRORLEVEL 2 GOTO 2
  79. IF ERRORLEVEL 1 GOTO HALFWAY
  80. IF ERRORLEVEL 0 GOTO ABORT
  81. GOTO TOP
  82. :HALFWAY
  83. REM The wait.com used here will show the errorlevel made by RC.com:
  84. wait 00:00:05
  85. cd\remctl58
  86. REM Gets here ONLY if it was the 2nd 'single ring'.. Anything other than
  87. REM a single prev. ring goes to TOP or ABORT (& same via :2 & :3)
  88. RC 3 ATS0=0
  89. IF ERRORLEVEL==3 GOTO 3
  90. IF ERRORLEVEL 2 GOTO 2
  91. IF ERRORLEVEL 1 GOTO 1
  92. IF ERRORLEVEL 0 GOTO ABORT
  93. GOTO TOP
  94. :1
  95. REM Now here 'cause it was the 2nd single ring...
  96. cd\bitfax
  97. recvfax 3
  98. REM must keep 1 min. here, as recvfax is resident,will keep control
  99. REM as long as fax is comming in ??
  100. c:\wait 00:05:00
  101. if errorlevel 1 goto end
  102. GOTO TOP
  103. :2
  104. REM Put anything you want done on 2 ring hangups here
  105. GOTO TOP
  106. :3
  107. REM Put anything you want done on 3 ring hangups here
  108. GOTO TOP
  109. :ABORT
  110. :end
  111. REM Let's see what TAME did, by the way...:
  112. c:\tame\tame /status
  113. REM and change prompt in case you CTRL-C out of the bat file to
  114. REM keep the window open:
  115. REM (and change prompt to be more useful...)
  116. echo                           *
  117. echo Hit CTRL-C to keep window open, but NO FAX's CAN BE REC'D!...
  118. echo                           *
  119. wait 00:00:10
  120. if errorlevel 1 goto stay
  121. exit
  122. :stay
  123. set prompt=-$p-$g
  124.  
  125. -----
  126.  
  127. I'm sure Jon spent a fair amount of time creating the wondeful Batch File
  128. and I'd like to pass on my gratitude to him, for allowing the rest of us
  129. to take advantage of his creative imagination!
  130.  
  131. -----
  132.